// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.dcel.tree;

import java.io.PrintStream;

/**
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public final class Unit {
  public final String packageName;
  public final String name;
  public final List<Config>
  public final List<Port> ports;

  public Unit(String packageName, String name) {
    this.packageName = packageName;
    this.name = name;
  }
  
  public void print(PrintStream printStream) {
    if (packageName != null) {
      printStream.println("package " + packageName + ";");
      printStream.println();
    }

    printStream.println("unit " + name + " {");
    printStream.println("}");
  }
}
